#ifndef SERIALIZABLE_INT_H
#define SERIALIZABLE_INT_H

#include "Serializable.h"

// An int which knows how to print and parse itself

class Serializable_Int : public Serializable {
public:
    Serializable_Int() {
        value = 0;
    }

    Serializable_Int(int v) {
        value = v;
    }

    std::ostream& print(std::ostream& os) const {
        os << value;
        return os;
    }

    int value;
};

std::ostream& operator<<( std::ostream& os,
                          const Serializable_Int& v );
#endif
